package at.guthy;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JSplitPane;

public class MainWindow extends JFrame {
	
	public MainWindow() {
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JSplitPane sp = new MySplitPane(new BrowserWindow(), new PicasaWindow());
		sp.setOrientation(JSplitPane.HORIZONTAL_SPLIT);
		sp.setDividerLocation(400);
		this.add(sp, BorderLayout.CENTER);
		this.setSize(800, 600);
		this.setTitle("Hi");
	}
}

class MySplitPane extends JSplitPane {
	public MySplitPane(final BrowserWindow bw, final PicasaWindow pw) {
		this.setLeftComponent(bw.getContentPane());
		this.setRightComponent(pw.getContentPane());
	}
}